package com.t13;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by xuyiwei on 2018/7/31.
 */
public class E14 {
    public static void main(String[] args) {
        String as = "北京市(awdawd)";
//        Pattern p = Pattern.compile("\\(.*$");
//        Matcher m = p.matcher(as);
//        while (m.find()){
//            System.out.println(m.group());
//
//        }

        System.out.println(as.replaceAll("\\(.*$",""));
    }
}
